package org.graduation.model.common.project;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

@Data
@TableName("project")
public class Project {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "p_id", type = IdType.ASSIGN_ID)
    private Long pId;
    @TableField(value = "owner")
    private Integer owner;
    @TableField(value = "name")
    private String name;
    @TableField("created")
    private Date created;
}
